﻿/*
 * 2008 (c) ralfoide at gmail com
 * Project: SharpFlow
 * License: GPL
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Alfray.SharpFlow.Utils {

    /// <summary>
    /// A void(void) delegate, used to create anomymous delegates to
    /// be called from Control.Invoke (to execute code in the UI thread).
    /// </summary>
    public delegate void InvokeDelegate();

    public static class Misc {

        /// <summary>
        /// Computes the absolute path of a given settings filename.
        /// This prepends the user app data path to the filename, which is composed
        /// of the application name and the version number (without the 4th revision
        /// number.)
        /// </summary>
        /// <param name="filename">The desired leaf filename.</param>
        /// <returns>An absolute path for this file.</returns>
        public static string settingFileName(string filename) {
            return Utils.SharpFlowToOfxUtils.settingFileName(filename);
        }
    }
}
